{% extends 'app_planning/index.html' %}

{% block app_planning %}
<div class="row">
    <div class="span9">
        {% if form.non_field_errors %}
        <div class="alert-message warning">
            <a class="close" href="#">×</a>
            <p><strong>Error:</strong> {{ form.non_field_errors }}</p>
        </div>
        {% endif %}
        <form action="{{ form_action }}" method="post">
        {% csrf_token %}
        {% for field in form %}
            <div class="clearfix">
                {{ field.errors }}
                <label for="id_{{ field.html_name }}">{{ field.label }}</label>
                <div class="input">{{ field }}</div>
            </div>
        {% endfor %}
        <div class="actions">
            <input type="submit" value="Crear" class="btn btn-success" />
            <button type="reset" class="btn btn-danger">Cancelar</button>
        </div>
        </form>
    </div>
    {% include form_description %}
</div>
{% endblock %}
